import request from '@/utils/request'

// 获取分销商列表（分页）
export function getPage(query) {
    return request({
        url: '/jxstation/trader/getPage',
        method: 'get',
        params: query
    })
}
// 获取渠道服务费配置
export function traderFee(query) {
    return request({
        url: '/jxstation/traderFee/get',
        method: 'get',
        params: query
    })
}
// 添加渠道商
export function add(query) {
    return request({
        url: '/jxstation/trader/add',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 渠道商充值接口
export function recharge(query) {
    return request({
        url: '/jxstation/trader/recharge',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 修改渠道商信息
export function update(query) {
    return request({
        url: '/jxstation/trader/update',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 修改渠道商服务费配置
export function modify(query) {
    return request({
        url: '/jxstation/traderFee/modify',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}




